package com.xinrui.sunnyday.serivce.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.xinrui.sunnyday.dao.SetMealMobileDao;
import com.xinrui.sunnyday.pojo.Setmeal;
import com.xinrui.sunnyday.service.SetMealMobileService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service(interfaceClass = SetMealMobileService.class)
public class SetMealMobileServiceImpl implements SetMealMobileService {
    @Autowired
    private SetMealMobileDao setMealMobileDao;

    /**
     * 查询套餐不分页
     * @return
     */
    @Override
    public List<Setmeal> findAllMealMobile() {
        return setMealMobileDao.findAllMealMobile();
    }

    /**
     * 多表联查：套餐详细信息
     * @param id
     * @return
     */
    @Override
    public Setmeal findDetailById(Integer id) {
        return setMealMobileDao.findDetailById(id);
    }
}
